<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>导航栏2</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        div{
            width: 960px;
            height: 40px;
            margin: 100px auto 0;
            background-color: #55d8ea;
        }
        div ul{
            list-style: none;
        }
        div ul li{
            float: left;
        }
        div ul li a{
            height: 40px;
            width: 60px;
            display: inline-block;
            text-decoration: none;
            font: 14px '微软雅黑';
            color: #fff;
            line-height: 40px;
            text-align: center;
            padding: 0 20px;
        }
        div ul li a:hover{
            background-color: #00619f;
        }
        div ul li:nth-child(1){
            margin-left: 115px;
        }
        div ul li:nth-child(5){
            position: relative;
        }
        div ul li span{
            width: 30px;
            height: 10px;
            font-size: 10px;
            line-height: 10px;
            text-align: center;
            border-radius: 5px;
            background-color: orange;
            color: #fff;
            position: absolute;
            top: -5px;
            left: 50%;
            margin-left: -15px;
        }
    </style>
</head>
<body>
    <div>
        <ul>
            <li><a href="">首页</a></li>
            <li><a href="">网站建设</a></li>
            <li><a href="">程序开发</a></li>
            <li><a href="">网络营销</a></li>
            <li><a href="">企业VI</a><span>new</span></li>
            <li><a href="">案例展示</a></li>
            <li><a href="">联系我们</a></li>
        </ul>
    </div>
</body>
</html>